package com.lagou.guavacache.mapper;

import com.lagou.guavacache.dto.ModifyPostDTO;
import com.lagou.guavacache.entity.PostInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface PostMapper {

    List<PostInfo> selectHotPosts(int count);

    PostInfo selectPostById(Long postId);

    void updatePostById(@Param("postId") Long postId, @Param("modifyPostDTO") ModifyPostDTO modifyPostDTO);
}
